package com.njym.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IDEA
 * author:张善兵
 * Date:2018/8/21
 * Time:上午11:18
 */
@TableName("sys_organization")
public class SysOrganization extends Model<SysOrganization> {
    /**
     * 主键
     * 主键
     * isNullAble:0
     */
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 机构代码
     * isNullAble:1
     */
    private String code;

    /**
     * 机构名称
     * isNullAble:1
     */
    @TableField("org_name")
    private String orgName;

    /**
     * 行政区划代码
     * isNullAble:1
     */
    @TableField("area_code")
    private String areaCode;

    /**
     * 详细地址
     * isNullAble:1
     */
    private String address;

    private String notifyUrl;

    private String dataUrl;

    /**
     * 备注信息
     * isNullAble:1
     */
    private String remark;

    /**
     * 排序
     * isNullAble:1
     */
    @TableField("sort_no")
    private Integer sortNo;

    /**
     * 逻辑删除 0 否 1是
     * isNullAble:1
     */
    private Integer deleted;

    //    public List<SysOrganization> getSysOrganizationsList() {
    //        return sysOrganizationsList;
    //    }
    //
    //    public void setSysOrganizationsList(List<SysOrganization> sysOrganizationsList) {
    //        this.sysOrganizationsList = sysOrganizationsList;
    //    }
    //
    //    @TableField(exist = false)
    //    private List<SysOrganization> sysOrganizationsList = new ArrayList<>();    //用户存储系统系统的机构

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return this.id;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return this.code;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return this.address;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getDataUrl() {
        return dataUrl;
    }

    public void setDataUrl(String dataUrl) {
        this.dataUrl = dataUrl;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRemark() {
        return this.remark;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getDeleted() {
        return this.deleted;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
